import React, { Component } from "react";
import { HashRouter as Router, Switch, Route } from 'react-router-dom'
import RouterView from "./router/RouterView"
import Footer from './components/Footer'
import './common.scss'
class App extends Component {
  render() {
    return (
      <Router>
        <React.Suspense fallback={<div>加载中...</div>}>
          <div className="container">
            <RouterView />
            <Switch>
              <Route path="/home" component={Footer} />
              <Route path="/kind" component={Footer} />
              <Route path="/cart" component={Footer} />
              <Route path="/user" component={Footer} />
            </Switch>
          </div>
        </React.Suspense>
      </Router>
    )
  }
}
// function App() {
//   return (
//     <div>
//       aaaa
//     </div>
//   );
// }

export default App;
